package com.ftwj.service;

import com.ftwj.entity.SysMenu;
import com.ftwj.mapper.MenuOperationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MenuOperationService {
@Autowired
    private MenuOperationMapper menuOperationMapper;

    public int insertMenu(SysMenu sysMenu){
        return menuOperationMapper.insertMenu(sysMenu);
    }

    public int updateMenu(SysMenu sysMenu){
        return menuOperationMapper.updateMenu(sysMenu);
    }

    public int deleteMenu(String id){
        return  menuOperationMapper.deleteMenu(id);
    }


}
